package pkg;

/**
 * @author huangliusong
 * @since 2018/10/21
 * {@link }
 */
public class BoxingAndUnBoxing {
    public static void main(String[] args) {
        System.out.println(new Integer(2)==2);
        System.out.println(new Integer(2)==new Integer(2));

        System.out.println(Integer.valueOf(2)==Integer.valueOf(2));

        System.out.println(Integer.valueOf(2).intValue()==2);

    }
}
